package io.github.siltal.examsystembackend.dto;

public record EmailChangeResponse(
        Boolean ok,
        String error
) {
    public static EmailChangeResponse userNotFound() {
        return new EmailChangeResponse(false, "用户不存在");
    }

    public static EmailChangeResponse success() {
        return new EmailChangeResponse(true, "");
    }

    public static EmailChangeResponse emailFormatError() {
        return new EmailChangeResponse(true, "邮箱格式错误");
    }


}

